import {createRouter, createWebHistory} from 'vue-router'

const router = createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/',
            redirect: '/home',
            component: () => import('@/views/Manager.vue'),
            children: [
                {path: 'home', component: () => import('@/views/manager/Home.vue')},
            ]
        },
        {path: '/:pathMatch(.*)*', redirect: '/home'},
    ]
})

export default router
